<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $template_dir </tpl>/home/css/index_new.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $template_dir </tpl>/home/css/css.css" rel="stylesheet" type="text/css" />
<tpl>
include file ='../head.config.html'</tpl>
</head>
<body> <tpl>include file ='../header.html'</tpl>
<div id="container761">
 <div class="own_member_main">
 <tpl>include file ='own_menu.html'</tpl>
   <div class="member_right">
     <div class="new_main_left">
       <div class="new_main_left1"><strong>
         <h1 class="new_text">
           <tpl> $langResumeMessageSubscribe </tpl>
         </h1>
       </strong> <i></i> </div>
       <b></b> </div>
	     <div id="own_main_rightop"> <ul style=" border:none; margin:-10px auto 10px auto;*margin:-10px auto 10px auto;_margin:-10px auto 0 auto">
               <li style="height:20px">
                 <tpl> $langResumeMessageRemind </tpl>
               </li>
               <li style="line-height:20px; height:20px">
                 <tpl> $langResumeThereinto </tpl>
                 <span style="color:#FF0000">*</span>
                 <tpl> $langResumeInformIsMust </tpl>
                 <input type="checkbox" checked name="hoar" value="hoar" disabled />
                 <tpl> $langResumeMessageFashionIsMust </tpl>
                 <input type="checkbox" name="hoar2" value="hoar" disabled />
                 <tpl> $langResumeMessageNotSustain </tpl>
               </li>
             </ul></div>
	<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
     <form name="mainform" id="mainform" action="own_remind.php?action=save" method="post" onsubmit="return checkform();" >
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td height="45" align="center" valign="middle">
		   		   <div style="width:200px; margin:0 auto">
<input name="submit" type="submit" class="new_anniu" value="<tpl> $langCsave </tpl>" />
<input name="button" type="button" class="new_anniu" onclick="if(confirm('<tpl> $langConfirmResumeDefaultSetup </tpl>')){location.href='own_remind.php?action=default_value';}else{return false;}" value="<tpl> $langResumeDefaultSetup </tpl>" />
</div>
</td>
         </tr>
       </table>
       <table width="100%" height="13"  border="0" cellpadding="0" cellspacing="0" style="border-bottom:2px solid #ccc">
         <tr>
           <td width="60%" height="25" align="center" bgcolor="#F3F3F3"><tpl> $langResumeMessageContent </tpl></td>
           <td width="20%" height="25" align="center" bgcolor="#F3F3F3"><tpl> $langResumeEmail </tpl></td>
           <td width="20%" height="25" align="center" bgcolor="#F3F3F3"><tpl> $langResumeStationInnerMessage </tpl></td>
         </tr>
       </table>
     	
         <tpl> foreach from=$remind_array item=one </tpl>

       <table width="100%" height="13"  border="0" cellpadding="0" cellspacing="0">
         <tr>
           <td height="30" align="left" style=" height:20px; background-color:#FAFAFA"><strong>　
               <tpl> $one.name </tpl>
           </strong></td>
         </tr>
       </table>
    
         <tpl> foreach from=$one.body item=two </tpl>
	
         <table width="100%" height="13"  border="0" cellpadding="0" cellspacing="0">
           <tr>
             <td align="left"  style="padding-top:10px; width:580x"><tpl> $two.name </tpl></td>
           </tr>
         </table>
  <tpl> foreach from=$two.body item=three </tpl>

       <table height="13"  border="0" cellpadding="0" cellspacing="0" style=" color:#005fa9; border-bottom:1px solid #D7D7D7">
					<tr>
						<td width="60%" height="25" align="left" style="padding-left:30px"><tpl> if $three.must eq '1' </tpl> <span style="color:#FF0000">*</span>
					  <input type="hidden" name="<tpl> $three.tag </tpl>_must" id="<tpl> $three.tag </tpl>_must" value="true" /><tpl> else </tpl> <input type="hidden" name="<tpl> $three.tag </tpl>_must" id="<tpl> $three.tag </tpl>_must" value="false" /> <tpl> /if </tpl><tpl> $three.name </tpl></td>
						<td width="20%" height="25" align="left" style="border-left:1px dashed #D7D7D7">
							<tpl> if $three.mail_disabled eq '1' </tpl>
								<input type="checkbox" disabled="disabled" <tpl> if $three[$three.tag].mail_check eq '1' </tpl>checked="checked" <tpl> /if </tpl> />
								<input type="hidden" id="<tpl> $three.tag </tpl>_mail" name="<tpl> $three.tag </tpl>_mail" value="<tpl> $three[$three.tag].mail_check </tpl>" />
							<tpl> else </tpl>
								<input type="checkbox" <tpl> if $three[$three.tag].mail_check eq '1' </tpl>checked="checked" <tpl> /if </tpl> id="<tpl> $three.tag </tpl>_mail" name="<tpl> $three.tag </tpl>_mail" value="1"/>
							<tpl> /if </tpl>
					  </td>
						<td width="20%" height="25" align="left"  style="border-left:1px dashed #D7D7D7">
							<tpl> if $three.msg_disabled eq '1' </tpl>
								<input type="checkbox" disabled="disabled" <tpl> if $three[$three.tag].msg_check eq '1' </tpl>checked="checked" <tpl> /if </tpl> />
								<input type="hidden" id="<tpl> $three.tag </tpl>_msg" name="<tpl> $three.tag </tpl>_msg" value="<tpl> $three[$three.tag].msg_check </tpl>" />
							<tpl> else </tpl>
								<input type="checkbox" <tpl> if $three[$three.tag].msg_check eq '1' </tpl>checked="checked"<tpl> /if </tpl> id="<tpl> $three.tag </tpl>_msg" name="<tpl> $three.tag </tpl>_msg" value="1"/>
							<tpl> /if </tpl>
					  </td>
						<input type="hidden" name="tag" value="<tpl> $three.tag </tpl>">
					</tr>
		</table>
		
       <tpl> /foreach </tpl>
       <tpl> /foreach </tpl>
       <tpl> /foreach </tpl>
	   

       <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td height="30" align="center">
		   <div style="width:200px; margin:10px auto">
<input name="submit" type="submit" class="new_anniu" value="<tpl> $langCsave </tpl>" />
<input name="button" type="button"class="new_anniu" onclick="if(confirm('<tpl> $langConfirmResumeDefaultSetup </tpl>')){location.href='own_remind.php?action=default'}else{return false;}"  value="<tpl> $langResumeDefaultSetup </tpl>" />
</div>
           </td>
         </tr>
       </table>
       <div style="clear:both"></div>
     </form>
     <div style="clear:both"></div>
   </div>
  </div>
<tpl> include file ='../../../html/footer.html' </tpl>
</div>
</body>
<script>
	function checkform()
	{
		//检查必选的，是否已选
		var es = document.forms['mainform'].elements['tag'];
		for( var i = 0; i<es.length; ++i ){
			var e = es[i];
			var msg_necessary = document.forms['mainform'].elements[e.value+'_must'];
			if( msg_necessary.value == 'true' )
			{
				var checked = "false";
				
				var ns = document.forms['mainform'].elements[e.value+'_mail'];
				var ms = document.forms['mainform'].elements[e.value+'_msg'];
    			if( (ns.checked || ms.checked) || ns.type=="hidden")
				{
					checked = "true";
				}
				if( checked == "false" )
				{
					alert("<tpl> $langRSelectSendFashion </tpl>");
					window.location = "#" + e.value + '_mail';
					return false;
				}
			}
		}
		return true;
	}
</script>
</html>
